import request from "./request";
import store from '../store/index';
export const userLogin = (data) => request({
    method: 'post',
    url: '/user/login',
    data
});

export const getUserInfo = (id) => request({
    method: "GET",
    url: '/userInfo/get',
    params: {
        userId: id
    },
    headers: {
        Authorization: `Bearer +${store.state.login.userMsg.myToken}`
    }
})

export const offLogin = (data) => request({
    method: 'post',
    url: '/user/',
    data
})